<%@page import="com.thinkgem.jeesite.common.utils.StringUtils"%>
<%@page import="com.boxin.ims.modules.wechat.utils.WechatUtils"%>
<%@page import="com.boxin.ims.modules.wechat.entity.UserDefine"%>
<%@page import="org.springframework.ui.Model"%>
<%@page import="com.boxin.ims.modules.wechat.entity.WechatMember"%>
<%@page import="com.zhixun.mobile.modules.member.web.IndexController"%>
<%@page import="com.zhixun.mobile.sys.utils.SessionMemberUtils"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9,IE=10" />
<script src="${ctxStatic}/member/themes/default/jquery-1.9.1.min.js" type="text/javascript"></script>
<link href="${ctxStatic}/bootstrap/2.3.1/css_${not empty ctxTheme?ctxTheme:'default'}/bootstrap.min.css" type="text/css" rel="stylesheet" />
<script src="${ctxStatic}/bootstrap/2.3.1/js/bootstrap.min.js" type="text/javascript"></script>
<link href="${ctxStatic}/member/themes/default/default.css" type="text/css" rel="stylesheet" />
<link href="${ctxStatic}/member/themes/default/style.css" type="text/css" rel="stylesheet" />



<%

	String userId = request.getParameter("uid");
	WechatMember member =	SessionMemberUtils.getSessionMemberByUserId(request,userId);
	UserDefine userDefine  = new UserDefine();
	if(StringUtils.isNotEmpty(userId)){
		userDefine = WechatUtils.getUserDefineByUserId(Long.parseLong(userId));
	}
	
%>
<div class="topbar clearfix">
					<div class="topbarbg"></div>
					<div id="min_nav">
						
						<div class="min_nav_right_text">
					
							<!--login -->
						<div class="min_nav_right_text">
							<% if(member == null){%> <a href="${ctxFront}/member/tologin?uid=${uid}&wechatId=${wechatId}&style=${style}&topage=${topage}">登录</a><%}else{ %>
							欢迎您  <%=member.getName() %> | <a href="${ctx }/member/toIndex?uid=${uid}&wechatId=${wechatId}&style=${style}&topage=${topage}">会员中心</a>
							| <a href="${ctx }/member/myActivity?uid=${uid}&wechatId=${wechatId}&style=${style}&topage=${topage}">活动中心</a>
							| <a href="${ctx }/member/logout?uid=${uid}&wechatId=${wechatId}&style=${style}&topage=${topage}">退出</a>
							<%} %>
						</div>
						
						
					</div>
					         <!--   <h3 style="text-align:center">${membertitle }</h3> -->
				</div>
				</div>